<%@ page contentType="text/html;charset=UTF-8" language="java"
	isELIgnored="false"%>
<%@ include file="includes/common.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
        <meta name="META_MAIN_MENU_ID" content="HOME" />
		<title>主页</title>
		<meta name="search" content="price" />
		<meta name="author" content="chunhai.chen(15317227@qq.com)" />
	</head>


<body>

	<div class="notice">
		<c:if test="${not empty pubadvArticles }">
			<c:forEach items="${pubadvArticles}" var="v" varStatus="vst">
				<p><span>公告：</span><font color="#ff0000">${v.longDesc }</font> &mdash;&mdash; <fmt:formatDate value="${v.statusUpdated }" pattern="M"></fmt:formatDate>月<fmt:formatDate value="${v.statusUpdated }" pattern="dd"></fmt:formatDate>日</p>
			</c:forEach>
		</c:if>
	</div>
	
	<div id="post-910" class="sticky">
		<c:if test="${not empty toppedArticles }">
			<c:forEach items="${toppedArticles}" var="v" varStatus="vst">
				<h2>[置顶] <a rel="bookmark" href="/article/${v.uid}.htm">${v.name}</a></h2>
			</c:forEach>
		</c:if>
	</div>
	

    <c:if test="${not empty articles}">
          <c:forEach items="${articles}" var="v" varStatus="vst">
			<div id="post-929" class="post">
            	<div class="date"><span><fmt:formatDate value="${v.statusUpdated }" pattern="yyyy"></fmt:formatDate></span><span class="f"><fmt:formatDate value="${v.statusUpdated }" pattern="MM-dd"></fmt:formatDate></span></div>
            	<h2><a rel="bookmark" href="/article/${v.uid}.htm" class="title">${v.name}</a></h2>
				<div class="info">
					<c:if test="${not empty v.author }">
					<span class="author"><a title="由 ${v.author.name } 发表" href="http://${v.author.blogUrl }">${v.author.name }</a></span>
					</c:if>
					<%--
                    <span class="categories">
                    	<a rel="category tag" title="查看 SEO探讨 的全部文章" href="/articles/seo.htm">SEO探讨</a>
                    </span>
                     --%>
                    <c:if test="${not empty v.tags }">
	                    <span class="tags">
		                    <c:forTokens var="tag" items="${v.tags }" delims=",; " ><a rel="tag" href="/articles/tag/${tag }.htm">${tag }</a>&nbsp;&nbsp;</c:forTokens>	                    	
	                    </span>
                    </c:if>
					<span class="comments">
						<a title="${v.name}上的评论" class="Comments off" href="/article/${v.uid}.htm#comments"><em>${v.commentCount}</em> 回复</a>
					</span>
					<div class="clear"></div>
				</div>
				<div class="intro">					 
					<c:choose>
					    <c:when test="${fn:length(v.longDesc) > 200}">${fn:substring(v.longDesc, 0, 200)} [......]</c:when>
				    	<c:otherwise>${v.longDesc}</c:otherwise>
					</c:choose>					  
					<p class="read-more"><a href="/article/${v.uid}.htm">继续阅读</a></p>
				</div>
            </div>
          </c:forEach>
    </c:if>
	

</body>

</html>

